using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using OVS.BusinessObjects;
using OVS.DAL;

namespace OVS.BLL
{
	public partial class sysdiagramsBLL
	{
		private sysdiagramsDAO _sysdiagramsDAO;

		public sysdiagramsDAO sysdiagramsDAO
		{
			get { return _sysdiagramsDAO; }
			set { _sysdiagramsDAO = value; }
		}

		public sysdiagramsBLL()
		{
			sysdiagramsDAO = new sysdiagramsDAO();
		}
		public List<sysdiagrams> Getsysdiagramss()
		{
			try
			{
				return sysdiagramsDAO.Getsysdiagramss();
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}
		public sysdiagrams Getsysdiagrams(int diagram_id)
		{
			try
			{
				return sysdiagramsDAO.Getsysdiagrams(diagram_id);
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}
		public int Addsysdiagrams(sysdiagrams osysdiagrams)
		{
			try
			{
				return sysdiagramsDAO.Addsysdiagrams(osysdiagrams);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int Updatesysdiagrams(sysdiagrams osysdiagrams)
		{
			try
			{
				return sysdiagramsDAO.Updatesysdiagrams(osysdiagrams);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int Removesysdiagrams(sysdiagrams osysdiagrams)
		{
			try
			{
				return sysdiagramsDAO.Removesysdiagrams(osysdiagrams);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int Removesysdiagrams(int diagram_id)
		{
			try
			{
				return sysdiagramsDAO.Removesysdiagrams(diagram_id);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public List<sysdiagrams> Deserializesysdiagramss(string Path)
		{
			try
			{
				return GenericXmlSerializer<List<sysdiagrams>>.Deserialize(Path);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public void Serializesysdiagramss(string Path, List<sysdiagrams> sysdiagramss)
		{
			try
			{
				GenericXmlSerializer<List<sysdiagrams>>.Serialize(sysdiagramss, Path);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
	}
}
